import NProgress from 'nprogress';

import App from './App.vue';
import router from './router';
import setPermission from './router/permission';
import store from './store';
import defaultSettings from './settings';
import directive from './directives';

import plugins from './plugins/index';

// styles
import "uno.css";
import '@/assets/styles/index.scss';
// import 'element-plus/theme-chalk/index.css';

// svg icon
import 'virtual:svg-icons-register';


NProgress.configure({ showSpinner: false });

const app = createApp(App);
setPermission(router);
app.use(router);
app.use(store);
app.use(plugins);
directive.install(app);

app.mount('#app');

document.title = defaultSettings.title as string;
